#include "alert.h"
#include "ui_alert.h"

alert::alert(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::alert)
{
    ui->setupUi(this);

    this->setWindowFlags(Qt::FramelessWindowHint);      // 隐藏边框
    this->setAttribute(Qt::WA_TranslucentBackground);     // 背景透明
}

alert::~alert()
{
    delete ui;
}

void alert::on_yes_clicked()
{
    emit yes();
    this->close();
}

void alert::on_no_clicked()
{
    emit no();
    this->close();
}
